<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'concepto-socio-form',
	'enableAjaxValidation' => false,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Los campos con ('); ?> <span class="required">*</span> <?php echo Yii::t('app', ') son requeridos.'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'SocioId'); ?>
		<?php echo $form->dropDownList($model, 'SocioId', GxHtml::listDataEx(Socio::model()->findAllAttributes(null, true)),
										array(
											'prompt' => 'Seleccione un Socio ... '
										)
		); ?>
		<?php echo $form->error($model,'SocioId'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'ConceptoId'); ?>
		<?php echo $form->dropDownList($model, 'ConceptoId', GxHtml::listDataEx(Concepto::model()->findAllAttributes(null, true)),
										array(
											'prompt' => 'Seleccione un Concepto ... '
										)
		); ?>
		<?php echo $form->error($model,'ConceptoId'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'FechaInicio'); ?>
		<?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'name' => 'FechaInicio',
			'model' => $model,
			'attribute' => 'FechaInicio',
			'value' => $model->FechaInicio,
			'language' => 'es',
			'options' => array(
				'showButtonPanel' => false,
				'changeYear' => true,
				'changeMonth' => true,
				'maxDate' => 'y',
				'dateFormat' => 'yy-mm-dd',
				'onClose' => 'js:function(selectedDate) { $("#FechaFin").datepicker("option", "minDate", selectedDate); }',
			),
		)); ?>
		<?php echo $form->error($model,'FechaInicio'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'FechaFin'); ?>
		<?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'name' => 'FechaFin',
			'model' => $model,
			'attribute' => 'FechaFin',
			'value' => $model->FechaFin,
			'language' => 'es',
			'options' => array(
				'showButtonPanel' => false,
				'changeYear' => true,
				'changeMonth' => true,
				'dateFormat' => 'yy-mm-dd',
			),
		)); ?>
		<?php echo $form->error($model,'FechaFin'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'dependientes'); ?>
		<?php echo $form->textField($model, 'dependientes'); ?>
		<?php echo $form->error($model,'dependientes'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'valor'); ?>
		<?php echo $form->textField($model, 'valor', array('maxlength' => 10)); ?>
		<?php echo $form->error($model,'valor'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'MotivoFin'); ?>
		<?php echo $form->textField($model, 'MotivoFin', array('maxlength' => 60)); ?>
		<?php echo $form->error($model,'MotivoFin'); ?>
		</div><!-- row -->


<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->